package com.example.demo.staticsearch_demo.controller;


import com.example.demo.staticsearch_demo.pojo.User;
import com.example.demo.staticsearch_demo.service.UserService;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;
@RunWith(SpringRunner.class)
@SpringBootTest
public class UserController {

    @Autowired
    UserService userService;

    @Test
    public void userFinfAll() {
        List<User> list = userService.list();
        System.out.println(list.toString());
    }

    @Test
    public void testCreateIndex(){
      // 1. 创建CreateIndexRequest对象 并指定索引库名称



      // 2. 指定Settingn配置
      // 3. 指定mapping配置
      // 4. 发起请求,得到响应

    }
}
